/**
 * Using to make div equals height
 * 
 */

$( window ).load(function() {
	// Equals height login and news
	var loginHeight = $("#login_field").height();
	var resetHeight = $("#reset_field").height();
	var newsHeight = $("#news_field").height();

	if (newsHeight == null)
		newsHeight = 0;
	if (resetHeight == null)
		resetHeight = 0;
	if (loginHeight == null)
		loginHeight = 0;

	var max = loginHeight;
	if (max < newsHeight)
		max = newsHeight;

	if (max < resetHeight)
		max = resetHeight;
	// Set height;
	$("#login_field").height(max);
	$("#reset_field").height(max);
	$("#news_field").height(max);
	if (max == 0)
		max = -35;
	$("#home_top_content").height(max + 35);

	//alert("running");
	// Equals ul ad li in Menu

	// alert($("#menu_ul").height() + ":" + $(".menu_li").height());
});